package com.xinqi.modules.course.image.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xinqi.common.mybatis.data.repo.SuperMapper;
import com.xinqi.modules.course.image.dto.req.CourseImageQueryDTO;
import com.xinqi.modules.course.image.dto.rsp.CourseImageResultDTO;
import com.xinqi.modules.course.image.domain.CourseImageEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 课程背景封面图表数据层
 *
 * @author: system
 * @date: 2023/03/22
 */
@Mapper
public interface CourseImageMapper extends SuperMapper<CourseImageEntity> {
    Page<CourseImageResultDTO> findPage(Page<Object> page, @Param("dto") CourseImageQueryDTO query);

    List<CourseImageResultDTO> findList(@Param("dto") CourseImageQueryDTO query);
}